document.addEventListener('DOMContentLoaded', function() {
    // 可扩展更多功能
    console.log('选择器插件已激活');
});

document.getElementById('activate-btn').addEventListener('click', function() {
    chrome.tabs.query({ active: true, currentWindow: true }, function(tabs) {
        chrome.scripting.executeScript({
            target: { tabId: tabs[0].id },
            func: function() {
                if (window.lcsSelectorActivate) window.lcsSelectorActivate();
            }
        });
    });
});